/*
* @Author: An
* @Date:   2017-07-07 22:25:12
* @Last Modified by:   An
* @Last Modified time: 2017-07-17 22:15:04
*/

'use strict';
require('./index.css');
require('page/common/nav-simple/index.css');
var _xj = require('util/xj.js');

$(function() {
	var type = _xj.getUrlParam('type') || 'default',
		$element = $('.' + type + '-success');
	if (type === 'payment') {
		var orderNumber = _xj.getUrlParam('orderNumber');
			$orderNumber = $element.find('.order-number');
		$orderNumber.attr('href', $orderNumber.attr('href') + orderNumber);
	}
	// 显示对应的提示元素
	$element.show();
	// 后面可以单独定制例如订单创建后显示订单号的功能
});